<@main_macros.pageHeader/>
<form id="listForm" action="${ctx?if_exists}/pages/${bean}/form" method="post">
 <input type="hidden" name="rows" value="10">
 <input type="hidden" name="page" value="${page.pageNumber?default(1)}">

 <div class="container">
	<div id="search_bar" class="mt10">
       <div class="box">
          <div class="box_border">
            <div class="box_top"><b class="pl15">搜索</b></div>
            <div class="box_center pt10 pb10">
              <table class="form_table" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td>名称</td>
                  <td><input type="text" name="search.name:string" class="input-text lh25" size="10"></td>
 				 <td>地址</td>
                  <td><input type="text" name="search.name:string" class="input-text lh25" size="10"></td>
                  <td>有无冷柜</td>
                  <td>
                    <span class="fl">
                      <div class="select_border"> 
                        <div class="select_containers "> 
                        <select name="" class="select"> 
                        <option>男</option> 
                        <option>女</option> 
                        </select> 
                        </div> 
                      </div> 
                    </span>
                  </td>	
					<td colspan="6">
						 <input type="submit" value="确定" class="ext_btn ext_btn_submit">
                 		<input type="button" value="清空" onclick="'" class="ext_btn">	
					</td>
				</tr>
              </table>
            </div>
            </div>
          </div>
        </div>
    </div>	

     <div id="table" class="mt10">
        <div class="box span10 oh">
              <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
                <tr>
				   <th width="5%"><input type="checkbox" id="checkAll"></th>
                   <th width="5%">#</th>
                   <th width="15%">名称</th>
                   <th width="20%">地址</th>
                   <th width="20%">行政区划</th>
                   <th width="10%">激活</th>
 				   <th width="10%">有无冷柜</th>
				   <th width="15%">操作 <a href="${ctx?if_exists}/pages/${bean}/form" class="ext_btn"><span class="add"></span>添加</a></th>
                </tr>
				<#list page.list as shop>
					<tr class="tr">
                   		<td class="td_chk td_center"><input type="checkbox"></td>
 				   		<td class="td_num td_center">${shop_index+1}</td>
                   		<td class="td_center">${shop.name?if_exists}</td>
                   		<td class="td_center">${shop.address?if_exists}</td>
                   		<td class="td_center">${shop.xzqh?if_exists}</td>
						<td class="td_center"><#if shop.enable??><#if shop.enable==1>激活<#else>未激活</#if></#if></td>
                  		<td class="td_center"><#if shop.hasFreezer??><#if shop.hasFreezer==1>有<#else>无</#if></#if></td>
						<td class="td_center">
							<a href="javascript:void(0)" onclick="editById('${shop.id?if_exists}')" class="ext_link ext_edit"><span class="edit"></span>[修改]</a>&nbsp;&nbsp;
							<a href="javascript:void(0)" onclick="delById('${shop.id?if_exists}')" class="ext_link ext_del"><span class="del"></span>[删除]</a>
						</td>
                 	</tr>
				</#list>
              </table>

              <div class="page mt10">
                <div class="pagination">
                  <ul>
                      <li class="first-child"><a href="#">首页</a></li>
                      <li class="disabled"><span>上一页</span></li>
                      <li class="active"><span>1</span></li>
                      <li><a href="#">2</a></li>
                      <li><a href="#">下一页</a></li>
                      <li class="last-child"><a href="#">末页</a></li>
                  </ul>
                </div>
              </div>
        </div>
     </div>
</div>
</form>
<script>
	$(document).ready(function(){
		
	});
	
	function editById(id){
		$("#listForm").append($("<input type='hidden'  name=${bean}.id value="+id+">")).submit();
		//alert(id)	
	}
	function delById(id){
		if(confirm("确定删除？")){
			alert(id)
		}
	}
</script>
<@main_macros.pageFooter/>